package com.webbei.product.action;

import java.util.List;

import com.webbei.pojo.Products;
import com.webbei.product.service.ProductService;

public class ShowProducts {
  private ProductService ps;	
  private List<Product> products;
  
  public String execute(){
	  products = ps.getProducts();
	  System.out.println(products);
	  return "success";
  }
  
	public ProductService getPs() {
		return ps;
	}
	public void setPs(ProductService ps) {
		this.ps = ps;
	}
	public List<Product> getProducts() {
		return products;
	}
	public void setProducts(List<Product> products) {
		this.products = products;
	}
}
